window: Delay showing auto mnemonics on focus in
authorRui Matos <tiagomatos@gmail.com>
Fri, 21 Sep 2012 03:11:43 +0000 (05:11 +0200)
committerRui Matos <tiagomatos@gmail.com>
Tue, 2 Oct 2012 14:41:40 +0000 (16:41 +0200)
Just as in ed7a417dcbe3f0723e5dcef07d4bb566d77b7205 we don't want to
show auto mnemonics immediately but only after a short delay. In
particular this allows to capture screenshots without visible
mnemonics.

https://bugzilla.gnome.org/show_bug.cgi?id=684517

gtk/gtkwindow.c

index 483beb5d5bc3c183d35bdb3daea3338eef4db153..159514d5479d08a1e777e451f88c42e488cfe40a 100644 (file)
@@ -6248,7 +6248,7 @@ maybe_set_mnemonics_visible (GtkWindow *window)
                                 NULL, &mask);
           if (window->priv->mnemonic_modifier == (mask & gtk_accelerator_get_default_mod_mask ()))
             {
-              gtk_window_set_mnemonics_visible (window, TRUE);
+              _gtk_window_set_auto_mnemonics_visible (window);
               break;
             }
         }